const user = {
  namespaced: true,
  state: {
    name: '深巷明朝卖杏花1112'
  },
  mutations: {
    SET_NAME(state, name) {
      state.name = name
    }
  },
  actions: {
    setName({ commit }, name) {
      console.log('name: ', name)
      commit('SET_NAME', name)
    }
  }
}

export default user
